home *** CD-ROM | disk | FTP | other *** search
/ Aminet 34 / Aminet 34 (2000)(Schatztruhe)[!][Dec 1999].iso / Aminet / dev / c / PMM.lha / PMM / Developer / LibSrc / I2C_Base.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-22  |  298 b   |  18 lines

  1. #include <exec/libraries.h>
  2. #include <proto/exec.h>
  3.  
  4. struct Library *I2C_Base = NULL;
  5. extern unsigned long _I2C_BaseVer;
  6.  
  7. void _INIT_5_I2C_Base()
  8. {
  9.   if (!(I2C_Base = OpenLibrary("i2c.library",_I2C_BaseVer)))
  10.     exit(20);
  11. }
  12.  
  13. void _EXIT_5_I2C_Base()
  14. {
  15.   if (I2C_Base)
  16.     CloseLibrary(I2C_Base);
  17. }
  18.